package com.zzw.spring;

import org.springframework.beans.factory.annotation.Autowired;

public class Car {

	@Autowired
	private HelloService hello;
	
	private String carNumber;
	private String clolor;
	private int speed;
	
	public String getCarNumber() {
		return carNumber;
	}
	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}
	public String getClolor() {
		return clolor;
	}
	public void setClolor(String clolor) {
		this.clolor = clolor;
	}
	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	
	public void hello(){
		hello.hello();
	}

	@Override
	public String toString() {
		return "Car{" +
				"hello=" + hello +
				", carNumber='" + carNumber + '\'' +
				", clolor='" + clolor + '\'' +
				", speed=" + speed +
				'}';
	}
}
